package com.dgut.epidemic.mapper;

import com.dgut.epidemic.pojo.Daily_data;
import com.dgut.epidemic.pojo.WeChatUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Author: wuhaoduan
 * Date: 2021/6/12 17:56
 */
@Mapper
@Repository
public interface UserMangerMapper {
    //获得所有User
    List<WeChatUser> getAllWeChatUser();

    //判断某人当天是否已经上报
    int judgeUserIsSubmit(String id);

    //获得某人所有的记录
    List<Daily_data> getAllDailyDataBySno(String id);

    //锁定某人
    void lockWeChatUser(String id);

    //解锁某人
    void unlockWeChatUser(String id);

    //按用户状态排序
    List<WeChatUser> getWeChatUserOrderStaus();

    //按用户类别排序
    List<WeChatUser> getWeChatUserOrderType();

    //按用户ID排序
    List<WeChatUser> getWeChatUserOrderID();
}
